watchdog: add support for starting/stopping kernel watchdog
authorHans Dedecker <[email protected]>
Mon, 19 Jun 2017 09:14:27 +0000 (11:14 +0200)
committerHans Dedecker <[email protected]>
Wed, 12 Jul 2017 19:47:49 +0000 (21:47 +0200)
commit4dbf57a63b99f7bcaaf40679140995f80d864004
tree6108a669ddf1b244822c9ec8c4c8e768140b3c39
parent89918c8cb78e651ee0922f13a96b7f25fc2f285a
watchdog: add support for starting/stopping kernel watchdog

Extend the ubus watchdog cmd with the parameter magicclose; when set and
in case the stopped parameter is enabled the kernel watchdog will be stopped
by first sending the magic character 'V' followed by a close of the watchdog
fd. In case stopped is set to disabled the watchdog fd will be created again.

Signed-off-by: Hans Dedecker <[email protected]>
Acked-by: John Crispin <[email protected]>
system.c
watchdog.c
watchdog.h